package org.hyl.javabase.多线程;

public class thread1 extends Thread {
	private int count=15;
	private String name;
	public thread1(String name){
		this.name=name;
	}
	@Override
	public void run() {
		for (int i = 0; i < 10; i++) {
			System.out.println(Thread.currentThread().getName() + "运行  count= " + count--);
			//System.out.println(name + "运行，i=" + i);
		}
	}
}
